package com.coffee.wx.controller;

import com.coffee.wx.entity.business.WxUser;
import com.coffee.wx.service.IWxUserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/wx/user")
public class WxUserController {

    @Resource
    private IWxUserService userService;

    @GetMapping("/test")
    public List<WxUser> test(){
        return userService.list();
    }

    @GetMapping("/list")
    public List<WxUser> getList(){
        return userService.getList();
    }

}
